package cn.good.yan.sf.t6.priority;

/**
 * 6 优先级队列 - 实体
 *
 * @author shengren.yan
 * @create 2024-07-22
 */
public class Entry implements Priority {

    String str;
    int priority;

    public Entry(String str, int priority) {
        this.str = str;
        this.priority = priority;
    }


    @Override
    public int priority() {
        return priority;
    }

    @Override
    public String toString() {
        return "Entry{" +
                "str='" + str + '\'' +
                ", priority=" + priority +
                '}';
    }

}
